package com.project.commom.response;

/**
 * 响应状态码和说明
 */
public enum CodeEnum {
    SUCCESS(1000, "成功"), SERVER_ERROR(1001, "服务器异常"), TOKEN_IS_ERROR(1002, "token错误"), PARAM_ERROR(1003, "参数错误");

    /**
     * 响应状态码
     */
    private final int code;

    /**
     * 响应提示
     */
    private final String msg;

    private CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
